package com.bbcare.exportExcel.plat.entity;	

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @name:宝宝问卷包	
 * @author:	
 * @createTime: 
 */	
	
@Entity	
@Table(name="t_babyQuestionnairePackage")	
public class BabyQuestionnairePackage {	
	
	@Id	
	@GenericGenerator(name="systemUUID",strategy="uuid")	
	@GeneratedValue(generator="systemUUID")	
	@Column(name="_id")
	private String id;
	
	//购买时间	
	@Column(name="_buyTime")
	private Date buyTime;	
	
	//到期时间	
	@Column(name="_endTime")
	private Date endTime;	
	
	//价格	
	@Column(name="_price")
	private Integer price;	
	
	//宝宝Id	
	@Column(name="_babyId")
	private String babyId;	
	
	//宝宝名	
	@Column(name="_babyName")
	private String babyName;	
	
	//宝宝生日	
	@Column(name="_birthday")
	private Date birthday;	
	
	//宝宝性别
	@Column(name="_gender")
	private String gender;
	
	//创建时间	
	@Column(name="_createTime")
	private Date createTime;	
	
	//所属问卷包
	@ManyToOne
    @JoinColumn(name="_questionnairePackage_id")
    private QuestionnairePackage questionnairePackage;
    
    //关联问卷包名称
	@Column(name="_questionnairePackage_name")
    private String questionnairePackageName;
	
	//包含宝宝问卷记录
	@OneToMany(mappedBy="babyQuestionnairePackage")
    private List<BabyQuestionRecord> babyQuestionRecords;

	
	//不自动生成 的问卷Id黑名单
	@Column(name="_blackQuesionnaireId")
	private String blackQuesionnaireId;
	
	//医患群Id
	@Column(name="groupId")
	private String groupId;
	
	//是否是生长发育
	@Column(name="_isGrowth")
	private Boolean isGrowth;
	
	//问卷包编码
	@Column(name="_questionCode")
	private String questionCode;
	
	public BabyQuestionnairePackage() {
		super();
	}

	public BabyQuestionnairePackage(String id) {
		super();
		this.id = id;
	}

	public BabyQuestionnairePackage(String id,
			QuestionnairePackage questionnairePackage,Date createTime) {
		super();
		this.id = id;
		this.questionnairePackage = questionnairePackage;
		this.createTime = createTime;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getBuyTime() {
		return buyTime;
	}

	public void setBuyTime(Date buyTime) {
		this.buyTime = buyTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Integer getPrice() {
		return price;
	}

	public void setPrice(Integer price) {
		this.price = price;
	}

	public String getBabyId() {
		return babyId;
	}

	public void setBabyId(String babyId) {
		this.babyId = babyId;
	}

	public String getBabyName() {
		return babyName;
	}

	public void setBabyName(String babyName) {
		this.babyName = babyName;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public QuestionnairePackage getQuestionnairePackage() {
		return questionnairePackage;
	}

	public void setQuestionnairePackage(QuestionnairePackage questionnairePackage) {
		this.questionnairePackage = questionnairePackage;
	}

	public String getQuestionnairePackageName() {
		return questionnairePackageName;
	}

	public void setQuestionnairePackageName(String questionnairePackageName) {
		this.questionnairePackageName = questionnairePackageName;
	}

	public List<BabyQuestionRecord> getBabyQuestionRecords() {
		return babyQuestionRecords;
	}

	public void setBabyQuestionRecords(List<BabyQuestionRecord> babyQuestionRecords) {
		this.babyQuestionRecords = babyQuestionRecords;
	}


	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getBlackQuesionnaireId() {
		return blackQuesionnaireId;
	}

	public void setBlackQuesionnaireId(String blackQuesionnaireId) {
		this.blackQuesionnaireId = blackQuesionnaireId;
	}

	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	public Boolean getIsGrowth() {
		return isGrowth;
	}

	public void setIsGrowth(Boolean isGrowth) {
		this.isGrowth = isGrowth;
	}

	public String getQuestionCode() {
		return questionCode;
	}

	public void setQuestionCode(String questionCode) {
		this.questionCode = questionCode;
	}
	
}